<%@ page import="org.ibiblio.terasaur.item.Item" %>
<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
        <meta name="layout" content="thin_sidebar" />
        <content tag="title">${pageTitle}</content>
<%--
        <jqui:resources theme="darkness" />
        <jq:jquery>
            $("#published_date").datepicker({dateFormat: 'yy/mm/dd'});
        </jq:jquery>
--%>
    </head>
    <body>
        <div class="body hentry">
            <g:hasErrors bean="${itemInstance}">
            <div class="errors">
                <g:renderErrors bean="${itemInstance}" as="list" />
            </div>
            </g:hasErrors>

            <div id="item-details" class="full full-content">
<tmpl:/item/edit_form />
                <div class="clear"></div>
                <div class="edit edit-item edit-link">
                    <ts:itemLink item="${itemInstance}" class="edit-button">${message(code: 'item.cancel.button.text')}</ts:itemLink>
                </div>
            </div><!-- item-details -->
        </div>
    </body>
</html>
